<?

require_once($_SERVER['DOCUMENT_ROOT'].'/core/core.php');
$base = new database;
if($_GET['page'] == '_addMsg'){
        $base->connect();
        $values = "'".$_POST['name']."','".$_POST['msg']."','".date('d.m.Y')."','".date('H:i:s')."'";
        $base->insert('messages',$values);
}
if($_GET['page'] == '_register'){
    $base->connect();
    $values = "0,'".$_POST['username']."','".$_POST['password']."','".$_POST['email']."','".date('d.m.Y')."',0,'";
    $base->insert('users',$values);
}
if($_GET['page'] == '_getMsg'){
echo "...";
}